//
//  DujiaTableViewCell.m
//  22-AliPlanet_HomeWork
//
//  Created by 曹曹 on 16/8/13.
//  Copyright © 2016年 曹曹. All rights reserved.
//

#import "DujiaTableViewCell.h"
#import "LittleData.h"
#import "UIImageView+DownloadImage.h"


@interface DujiaTableViewCell ()
@property (weak, nonatomic) IBOutlet UIImageView *picView;
@property (weak, nonatomic) IBOutlet UILabel *nameLabel;
@property (weak, nonatomic) IBOutlet UILabel *descLabel;

@end

@implementation DujiaTableViewCell

- (void)layoutSubviews {
    [super layoutSubviews];
    _nameLabel.text = _data.name;
    _descLabel.text = _data.desc;
    [_picView asyncDownloadImageWithURL:_data.picUrl completionHandler:^(NSData *data, UIImage *image) {
    }];
}

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
